<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8"%>
<%@taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
    <title><s:text name="succPage"/></title>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p>Convention: login-success.jsp</p>
<s:text name="succTip">
    <s:param>${sessionScope.user}</s:param>
</s:text><br/>
<p>页面访问次数: ${applicationScope.get("counter")}</p>
${requestScope.tip}<br>
${sessionScope.get("user")}<br>
<s:property value="username"/><br>
${requestScope.get("extra")}
<s:actionmessage/>
${param.author}
<hr>
<p>s标签的使用</p>
<table border="1">
    <tr>
        <td>访问ValueStack</td>
        <td>&lt;s:property value="#request.tip"/&gt;</td>
        <td><s:property value="#request.tip"/></td>
    </tr>
    <tr>
        <td>访问静态成员变量</td>
        <td>&lt;s:property value="@java.lang.Math@PI"/&gt;</td>
        <td><s:property value="@java.lang.Math@PI"/></td>
    </tr>
</table>
</body>
</html>